package com.wuzhazha.javamind.chapter15.test02;

/**
 * 三维元组
 * @param <A>
 * @param <B>
 * @param <C>
 */
public class ThreeTuple<A,B,C> extends TwoTuple<A,B>{

    private final C third;

    public ThreeTuple(A a, B b,C c) {
        super(a, b);
        third = c;
    }

    public String toString(){
        return "(" + first + "," + second + "," + third + ")";
    }
}
